Kayıtlar

ubuntu etiketine sahip yayınlar gösteriliyor

Ubuntu useful terminal commands

* restart sudo reboot sudo shutdown -r now * download a file wget url with output file wget  -O /home/omio/Desktop/ "url" After "apt-get install filezilla" I got an error.   dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem..  "It is called when packages are broken, or the package installation is interrupted."  To solve type "dpkg --configure -a", you can type again "apt-get install filezilla", it should work. * list apps (Ubuntu 14.04 above)  apt list --installed * remove an app sudo apt-get remove <application_name> * VSFTPD, stands for Very Secure File Transfer Protocol Daemon sudo apt-get install vsftpd * learn ubuntu version lsb_release -a *add a new user adduser username * format a drive mkfs -t ext4 /dev/xvde * list mounted and unmounted partitions blkid -o list device     fs_type label    mount point    UUID -------------------------------...

Installing and Configuring ProFTPD on Ubuntu 14.4

To install  ProFTPd  on Ubuntu (or most Debian based) Linux, execute the following command. sudo apt-get install proftpd Installing a GUI Manager for ProFTPd sudo apt-get install gadmin-proftpd sudo rm /etc/proftpd/proftpd.conf we should remove because if we won't be able to run the app. The first time you start gadmin-proftpd, you will need to configure a few settings. All default values should be used unless otherwise noted below: Server Name: off Admin email: your.email@yourdomain.com Enable virtual users: checked Server user: ftpuser Server group: ftpgroup To add a virtual user: Click on the  Users  tab Click the '+Add' button. All settings can remain with their default values except: Username: Enter a username. Password: Enter a password. Group: ftpgroup Click +Add directory Click  File System Click home Click ftpuser Click the Open button Modify the directory permissions as needed. Click the Apply but...

Install VSFTPD, stands for Very Secure File Transfer Protocol Daemon on Ubuntu 16.04.3 LTS

In Ubuntu, the FileZilla server is not available. The VSFTPD is used instead of FileZilla Server. To install this, sudo apt-get install vsftpd Edit /etc/vsftpd.conf file: sudo nano /etc/vsftpd.conf  1.Disable anonymous user login. anonymous_enable=NO 2.Uncomment these two lines. ascii_upload_enable=YES ascii_download_enable=YES 3.Uncomment and enter your Welcome message - Not necessary, It's optional. ftpd_banner=Welcome to OSTechNix FTP service. 4.Add this line the end. use_localtime=YES 5.Save and close the file. Restart vsftpd service to take effect the changes. sudo systemctl restart vsftpd or sudo service vsftpd restart 6.Check if vsftpd service is running or not: sudo systemctl status vsftpd You will see like this  vsftpd.service - vsftpd FTP server    Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled; vendor preset: enabled)    Active: active (running) since Mon 2017-10-30 15:10:15 CST; 19s ago   ...

list memory usage of application in ubuntu

$ ps euf If I run free -m I get total used free shared buffers cached Mem: 496 489 6 0 4 452 -/+ buffers/cache: 33 462 Swap: 511 4 507   If I run ps euf I get USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 948 0.0 0.0 5928 472 tty6 Ss+ Aug25 0:00 /sbin/getty 384 root 947 0.0 0.0 5928 472 tty5 Ss+ Aug25 0:00 /sbin/getty 384 root 946 0.0 0.0 5928 472 tty4 Ss+ Aug25 0:00 /sbin/getty 384 root 945 0.0 0.0 5928 472 tty3 Ss+ Aug25 0:00 /sbin/getty 384 root 944 0.0 0.0 5928 472 tty2 Ss+ Aug25 0:00 /sbin/getty 384 root 943 0.0 0.1 51856 536 hvc0 Ss Aug25 0:00 /bin/login -- root 978 0.0 0.4 20580 2424 hvc0 S Aug25 0:01 \_ -bash TERM= root 7593 0.0 0.1 10332 524 hvc0 T Aug25 0...

View in tar file

Task: List the contents of a tar file Use the following command: $ tar -tvf file.tar

How to install and configure tomcat 6 in ubuntu server

Tomcat is a well known and widely used java servlet container. These days I am planning a project, which needs a tomcat 6 in ubuntu server. I found that to make tomcat work in ubuntu is very easy, but you need have a little trick to change your server listening port from 8080 to 80. Here I give you the way that I make it work. 1. Install tomcat 6 in ubuntu normally, you just need to type the following command to install it sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user tomcat6-docs tomcat6-examples 2. Start tomcat sudo /etc/init.d/tomcat6 start   Now, you can use your browser to navigate this address: http://<your ip>:8080   And you will see the tomcat It works! page Usually, HTTP server works with the port 80, but the default port for tomcat is 8080, that is why we need specify 8080 after your ip address. To change the default port from 8080 to 80, type the following command in the terminal: sudo vim /etc/tomcat6/serv...

Linux Check Memory Usage

free command Display free memory size in MB: $ free -m Output: total used free shared buffers cached Mem: 750 625 125 0 35 335 -/+ buffers/cache: 254 496 Swap: 956 0 956   Displays a line containing the totals memory in MB: $ free -t -m Output: total used free shared buffers cached Mem: 750 625 125 0 35 335 -/+ buffers/cache: 253 496 Swap: 956 0 956 Total: 1707 625 1082 vmstat command Type vmstat command at shell prompt: $ vmstat Output: procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 1 0 0 131620 35432 341496 0 0 42 82 737 1364 15 3 81 1 top command Type top command at t...