This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mkdir /mac | |
sudo mount -t hfsplus -o force,rw /dev/sda2 /mac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /home/arpit/Desktop | |
umount /dev/mmcblk0* | |
dd if=/dev/zero of=/dev/mmcblk0 bs=1k count=2048 | |
#echo -e "d\n\nd\nw" | grep fdisk /dev/mmcblk0 | |
echo -e "o\nn\np\n1\n\n+100M\nt\nc\nn\np\n2\n\n\nw" | fdisk /dev/mmcblk0 | |
mkdir root boot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
str="" | |
get_ran() | |
{ | |
str="35234708" | |
for i in `seq 1 7` | |
do | |
str=$str`expr $RANDOM % 10` | |
done | |
} | |
get_ran |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
count=1 | |
if [ ! -d "temp1" ];then mkdir temp1; fi | |
for i in *; | |
do | |
if [ -f "$i" ]; | |
then | |
ext=$(echo "$i" | awk -F"." '{print $NF}') | |
mv "$i" "temp1/img_$count.$ext"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
montage $(for f in *;do for j in {0..4};do echo $f; done done) -tile 6x7 -auto-orient -geometry '425x520!+8+8' -page A4 ../arpit.pdf | |
echo "# To set default option of printer" | |
echo "lpoptions -d EPSON_L210_Series \n" | |
echo "# To print pdf" | |
echo "look at -P " | |
echo "lp -d HP_LaserJet_M1005 -P 4-4 -o media=a4 -o scaling=100 -o fit-to-page ../arpit.pdf" | |
# full page image aspect ratio ignored |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Arch Installation Notes | |
https://wiki.archlinux.org/index.php/installation_guide | |
/dev/sda2 --- efi partition | |
/dev/sda6 --- linux partition | |
mkfs.ext4 /dev/sda6 | |
mkdir -r /mnt/boot/efi | |
mount /dev/sda6 /mnt |
NewerOlder