Skip to main content

Posts

Showing posts with the label linux

Force Deleting Contents in Rubbish Bin - Ubuntu

You may have deleted some files when you are in super user mode (sudo). The problem here is that when you are using uvunru variants, you can't empty the rubbish bin since the files transported where from a sudo operation. you can't also open the rubbush bin folder even if you opened the file browser through sudo. So to get around this, we erase is through terminal!!! We navigate through the rubbish bin folder through terminal and delete all the contents through the "rm" command. $ sudo rm -rf  ~/.local/share/Trash/files/*

Directly Connecting Your Computer to Raspberry Pi through Ethernet

A quick guide to connect your computer to Raspbberry Pi without the use of routers. $ sudo apt-get install dnsmasq-base Go to “Network Connections” Press “Add” Press “Ethernet” Press “Create” Go to “IPv4 Settings” tab. Under Method, choose “Shared to other computers” Set a distinct name. Press “Save”. Get Raspberry Pi IP with: $ cat /var/lib/misc/dnsmasq.leases Now you can SSH or VNC!!!!

Installing Raspberry Pi image to an SD Card

Here is a simple set of instructions to set up the SD card for your Raspberry Pi in Linux. Download desired OS image. ( https://www.raspberrypi.org/downloads/ ) Set your SD Card for image flashing: Unmount the sdcard. This should give full access to gparted. Open GParted Software. I you don't have GParted, you can install it through the Following instruction: $ sudo apt-get install gparted Delete All existing partitions in the SD card . Reformat all into fat32. Flash image to sd card through dd command: $ sudo dd bs=1M if=/home/enzero/Projects/2017-01-11-raspbian-jessie-lite.img of=/dev/mmcblk0 status=progress /dev/mmcblk0 - The SD card directory. In my case, I was using the card reader port so it is mmcblk0 /home/<DOWNLOAD_PATH>/2017-01-11-raspbian-jessie-lite.img - OS image location

Using a Scanner In Linux!

Here is a list of instructions I had to do to use my scanner in Linux. Hope you find it useful! Install $ sudo apt-get install sane $ sudo apt-get install xsane Plug scanner through usb. Look for the scanner connected e.g. (Bus 005 Device 035: ID 04b8:1103 Seiko Epson Corp.) by typing in the following command: $ lsusb Edit the configuration file of sane: $ sudo gedit /etc/sane.d/(scanner brand).conf There should be line with “USB”. Add the device and id number (values from lsub output) to the “USB” line. e.g. ( USB 0x0035 0x1103 ) Start the program! $ sudo xsane

Accessing USB device Through terminal

Identify usb device with lsblk. In this case, the usb is sda1. We first need to mount this into /media $ sudo mkdir /media/usb $ sudo mount /dev/sda1 /media/usb After that, we can now access the contents of the usb device through /media/usb You can check it by doing: $ ls /media/usb

Setting Up Altera CPLD Development in Linux!

Here is a simple guide to setup your Linux machine to develop Altera's CPLD. Install 32 bit libraries: $ sudo dpkg --add-architecture i386 $ sudo apt-get update $ sudo apt-get install libxft2:i386 libxext6:i386 libncurses5:i386 Download Whole software from altera website. ( Version 15.1) Download IDE, ModelSim , and device here: Altera Download Link Make sure to include your desired CPLD board software in the download. Get the usb blaster working by setting up the permissions by following Intel's Instruction Page . This should get you started with everything.

Generating a PDF file from several images in Linux!

So you wanna build a PDF from pages you have scanned or images you have gathered? Here is the simplest way to do it through the amazing terminal! First, open the terminal and install the imagemagick software: $ sudo apt-get install imagemagick Next, freaking generate the PDF with this simple command! $ convert image1.jpg image2.png image3.bmp output.pdf And there you go!