Showing posts with label debian. Show all posts
Showing posts with label debian. Show all posts

Monday, October 14, 2019

Mini Automation Project 2

Almost five years ago I have developed a mini automation project for automating turning things on and off at certain times. This project can be found here: http://www.etedal.net/2014/01/mini-automation-project.html

I have done a very similar project using BeagleBone and Python which the related code can be found here:
https://github.com/mahyaret/MiniAutomation

Sunday, September 29, 2019

Raspberry Pi 4 as a HiFi Music Server

I've bought Raspberry Pi 4 to use it as a DaaS (Desktop as a Service). I've needed a VPN server to securely connect to when I am traveling. I've needed a Cloud Server to replace Dropbox to have unlimited space. I've needed a NAS (Network-attached storage) to share files among my laptops and computers. I've also needed a Music Player Server to manage my music files and serve as a source for my amplifier. I've also needed a media player like Apple TV to play my movies, youtube etc.

Note: the sound quality was not satisfying for me.

In summary Raspberry Pi as:
1. Cloud server
2. VPN server
3. NAS
4. Music server (this post) (not recommended)
5. Media Player

Saturday, September 28, 2019

Raspberry Pi 4 as a Media Player

I've bought Raspberry Pi 4 to use it as a DaaS (Desktop as a Service). I've needed a VPN server to securely connect to when I am traveling. I've needed a Cloud Server to replace Dropbox to have unlimited space. I've needed a NAS (Network-attached storage) to share files among my laptops and computers. I've also needed a Music Player Server to manage my music files and serve as a source for my amplifier. I've also needed a media player like Apple TV to play my movies, youtube etc.

In summary Raspberry Pi as:
1. Cloud server
2. VPN server
3. NAS
4. Music server
5. Media Player (current post)

Raspberry Pi 4 as a NAS

I've bought Raspberry Pi 4 to use it as a DaaS (Desktop as a Service). I've needed a VPN server to securely connect to when I am traveling. I've needed a Cloud Server to replace Dropbox to have unlimited space. I've needed a NAS (Network-attached storage) to share files among my laptops and computers. I've also needed a Music Player Server to manage my music files and serve as a source for my amplifier. I've also needed a media player like Apple TV to play my movies, youtube etc.

In summary Raspberry Pi as:
1. Cloud server
2. VPN server
3. NAS (this post)
4. Music server
5. Media Player

Raspberry Pi 4 as a VPN Server

I've bought Raspberry Pi 4 to use it as a DaaS (Desktop as a Service). I've needed a VPN server to securely connect to when I am traveling. I've needed a Cloud Server to replace Dropbox to have unlimited space. I've needed a NAS (Network-attached storage) to share files among my laptops and computers. I've also needed a Music Player Server to manage my music files and serve as a source for my amplifier. I've also needed a media player like Apple TV to play my movies, youtube etc.

In summary Raspberry Pi as:
1. Cloud server
2. VPN server (this post)
3. NAS
4. Music server
5. Media Player

Raspberry Pi 4 as a Cloud Server

I've bought Raspberry Pi 4 to use it as a DaaS (Desktop as a Service). I've needed a VPN server to securely connect to when I am traveling. I've needed a Cloud Server to replace Dropbox to have unlimited space. I've needed a NAS (Network-attached storage) to share files among my laptops and computers. I've also needed a Music Player Server to manage my music files and serve as a source for my amplifier. I've also needed a media player like Apple TV to play my movies, youtube etc.

In summary Raspberry Pi as:
1. Cloud server (this post)
2. VPN server
3. NAS
4. Music server
5. Media Player

Friday, September 20, 2019

Create a Bootable Windows 7 or 10 USB Drive in Linux

source: https://thornelabs.net/posts/create-a-bootable-windows-7-or-10-usb-drive-in-linux.html


# fdisk /dev/sdY

create single partition type 7+bootable partition

# mkfs.ntfs -f /dev/sdY1
# ms-sys -7 /dev/sdY

# mount -o loop win7.iso /mnt/iso
# mount /dev/sdY1 /mnt/usb
# cp -r /mnt/iso/* /mnt/usb/

Wednesday, March 13, 2019

Windows Subsystem for Debian

If you're frustrated using Windows and there is no way around not using it use the following:
https://docs.microsoft.com/en-us/windows/wsl/install-win10

Open PowerShell as Administrator:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Install Debian:
https://www.microsoft.com/en-ca/p/debian/9msvkqc78pk6?rtc=1&activetab=pivot:overviewtab

sudo apt update

Thursday, March 7, 2019

Google Test (gtest) on Debian

Here is the link to the project source https://github.com/google/googletest

Here is the code for installing Google Test (gtest)

Tuesday, January 22, 2019

Initial Steps for Python

Change python version system-wide

This page has a great explanation for switching between Python and Python3:
https://linuxconfig.org/how-to-change-from-default-to-alternative-python-version-on-debian-linux

Installing Jupyter

Since in Python 3, ConfigParser has been renamed to configparser I switched to Python using:
Then for installing and running a Notebook:

Monday, November 5, 2018

Common Lisp IDE

Best resource for Common Lisp can be found here: https://github.com/norvig/paip-lisp

Emacs

- sudo apt-get install emacs
 
SBCL

- Download from here: http://www.sbcl.org/platform-table.html
- sudo ./install.sh

Slime

- create .emacs  in your home folder.

Sunday, October 21, 2018

Skype problem with Camera in Linux

Suppose your webcam is in /dev/video0.


1. sudo apt-get install v4l2loopback-dkms

2. sudo modprobe v4l2loopback

3. Finally, when you need your webcam on Skype, just run this command:

    ffmpeg -i /dev/video0 -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video1

Tuesday, December 22, 2015

How to Setup a VPN (PPTP) Server on Debian Linux

1:
 
sudo apt-get install pptpd
 
2:
 
sudo nano /etc/pptpd.conf
 
3: Add server IP and client IP at the end of the file. You can add like below:
 
 localip 192.168.2.100
remoteip 192.168.2.101-200
 
localip is the ip address of the server in the network and remoteip is the range you specify for vpn clients to join your network.