Posts Tagged Ubuntu

Ubuntu 16.04 TLS Development Environment

Ubuntu 16.04 TLS is a good, stable OS. After install the Ubuntu Desktop system, a set of applications should be installed to get a nice programming environment.

1 Web development applications
A while ago I wrote an article “Web Development Tools for Ubuntu OS“. It introduced Geany for editing, Workbench for SQL, Meld for file comparison, and Google Chrome for web testing. These applications are still hold true for Ubuntu 16.04 TLS.

2. R programming environment
First, install R base. Execute the following command in a terminal window (CTL + ALT + T) to add the source url to the APT source list.

sudo echo “deb http://cran.rstudio.com/bin/linux/ubuntu xenial/” | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install r-base r-base-dev

Then, install RStudio. Use the “Ubuntu Software” to search for R Studio and install it. It is pretty straight forward.

After install R Studio, you can open it and check if it works.

3. Python programming environment

Install Spyder. Use the “Ubuntu Software” to search for “Spyder” and install it. It is pretty straight forward.

Share

Tags: , , ,

Clean the boot partition of ubuntu OS

Every time you installed a new Linux kernel, it left a footprint in the grub_config, making the boot menu longer each time. Furthermore, it clogs the boot partition of the Ubuntu system. When the boot partition is full, you will get trouble to boot the machine properly. Does Ubuntu provide any easier way to clean them up or keep them from showing in the boot list?

The following information is from the internet and works for me perfectly.

Open terminal and check your current kernel:

uname -r 

DO NOT REMOVE THIS KERNEL!

Next, type the command below to view/list all installed kernels on your system.

dpkg --list | grep linux-image 

Find all the kernels that lower than your current kernel. When you know which kernel to remove, continue below to remove it. Run the commands below to remove the kernel you selected.

sudo apt-get purge linux-image-x.x.x.x-generic 

Finally, run the commands below to update grub2

sudo update-grub2 

Reboot your system.

Share

Tags: , , ,

FTP server on Ubuntu

OpenSSH includes sftp server if openSSH is installed in a Ubuntu system. No need to install another ftp server, such as vsftpd, which is nice for virtual ftp users. If there is no need for virtual FTP server, do not bother to install it. Just use the openSSH SFTP server. Common FTP clients, like filezilla, include SFTP protocol. It is very easy to setup and use. It requires users have SSH access of the system to use SFTP otherwise it cannot be used.

Share

Tags: , , ,

Ubuntu 12.0.4 TLS turn on/off upstart service

Origianlly, rcconf works for the old version of the Ubuntu system nicely. Unfortunately Ubuntu has converted many jobs/services to upstart. rcconf can no longer do much about these services. At askubunt.com site has nice article talking about how to deal with upstart services.

http://askubuntu.com/questions/19320/what-is-the-recommended-way-to-enable-disable-services

We can always use initctl list to get a list of running jobs / services.

Share

Tags: , ,

Solve lost wireless at wakeup from suspend on Ubuntu OS 13.10

Problem:

Put Ubuntu Os 13.10 to suspend mode. After the system wake up from the suspend mode, wireless network is lost and never restart.

Solution:

First find out what your wireless kernel driver you use:

sudo lshw -class network

Then look for “driver=xxxxx” e.g.

Second, create a file “/etc/pm/config.d/config” and type the following line:

SUSPEND_MODULES=”b43″

you should replace the wireless driver you found in the first step the string “b43”.

After that, reboot the system. You should be on business. Test the suspend mode and see if it works.

 

Share

Tags: , ,