Hi All,
There are many articles on setting FTP server in Ubuntu using vsftpd, but I found that most of them don't talk about the Anonymous FTP server. So here are the details.
Step 1. Install vsftpd
> sudo apt-get install vsftpd
Step 2. Need to change the configuration file so that anonymous user can access it.
> sudo chmod 777 /etc/vsftpd.conf
> sudo gedit /etc/vsftpd.conf
> look for anonymous_enable and put its value as YES.
> if you want to enable local access also, set local_enable as YES.
> Most important give the directory location where you will put all the files which you want to share.
for that look for anon_root, if not there then put it there and set its value with location like /home/ftp.
Step 3. your ftp server has been configured now. just start the service
> sudo service vsftpd restart or sudo /etc/init.d/vsftpd start
That's it. just type the ip in browser and you will be able to see all the files in the /home/ftp folder.
Online Diary for trouble shooting of daily technology problems.It have mixture of different flavors of technologies like android, windows problems, linux as well as the good informative links related to online movies or music or travel.
Tuesday, July 19, 2011
android.database.sqlite.SQLiteException: table already exists
Hi guys,
Many times I have faced this problem when I tried to call the db.execSQL(CREATE_TABLE) after openOrCreateDatabase(DATABASE_NAME,Context.MODE_PRIVATE, null); function. And generally it happens when you are trying to create a table in the same database which already have one or more table in i, other situation is when you are running the same program again and again and the same table is already in the database. So to solve this issue you just need to modify your CREATE_TABLE string(which is creating the table).
Generally we directly use “create table TABLE_NAME” which create problem, so instead of it just add one more thing in it, now create table using string “create table if not exists TABLE_NAME”. It will solve your problem. Hope it will help you.
Saturday, July 9, 2011
Bootable Pen Drive : Install Windows using Pen Drive
Hi,
Here is my another experience and blog for it. Today I tried to format my Lappy because it was getting slowed and now and then it was showing some dll errors. But after deleting the partition I came to know that my CD Rom is not working at all. So I have to go for the other option which is installing through pen drive. So here are the steps:
Step 1. go to command prompt. (If you are Vista / Windows 7 user do it in administrative mode.)
Step2. Type Diskpart
Step3. then type LIST DISK
Step 3. It will show you the list of disk. Observe the size. identify which is your pen drive.let us assume it is DISK 1. Now type following commands one by one
>CLEAN
>CREATE PARTITION PRIMARY
>SELECT PARTITION 1 – This 1 remains same always.
>ACTIVE
>FORMAT FS=FAT32
>ASSIGN
>EXIT
Here is my another experience and blog for it. Today I tried to format my Lappy because it was getting slowed and now and then it was showing some dll errors. But after deleting the partition I came to know that my CD Rom is not working at all. So I have to go for the other option which is installing through pen drive. So here are the steps:
Step 1. go to command prompt. (If you are Vista / Windows 7 user do it in administrative mode.)
Step2. Type Diskpart
Step3. then type LIST DISK
Step 3. It will show you the list of disk. Observe the size. identify which is your pen drive.let us assume it is DISK 1. Now type following commands one by one
>CLEAN
>CREATE PARTITION PRIMARY
>SELECT PARTITION 1 – This 1 remains same always.
>ACTIVE
>FORMAT FS=FAT32
>ASSIGN
>EXIT
Step 4. Copy CD/DVD contents to Pen Drive
> xcopy e:\*.* /s/e/f f:\
where e:\ is your source DVD drive, f:\ is target Pen Drive
Step 5.Change BIOS Settings in the target system
Give your Pen Drive priority as 1. Now just save settings and reboot with Pen Drive inserted in it.
That's it. you are ready with your Windows Pen Drive. :)
where e:\ is your source DVD drive, f:\ is target Pen Drive
Step 5.Change BIOS Settings in the target system
Give your Pen Drive priority as 1. Now just save settings and reboot with Pen Drive inserted in it.
That's it. you are ready with your Windows Pen Drive. :)
Subscribe to:
Posts (Atom)