I used a class 4 32gb miniSD card.
I used a Mac to load the image onto the SD card
The ubuntu image is here:
ubuntu 14 download: Download 2015-04-06-ubuntu-trusty.zip
the link can also be found here: https://wiki.ubuntu.com/ARM/RaspberryPi
Here is where I got the steps to format the SD card
https://www.raspberrypi.org/documentation/installation/installing-images/mac.md
I used their command line instructions
(https://www.raspberrypi.org/documentation/installation/installing-images/README.md they have walkthroughs for Windows and Linux also)
diskutil list
Identify the disk (not partition) of your SD card e.g. disk4 (not disk4s1):
diskutil unmountDisk /dev/<disk# from diskutil>
e.g. diskutil unmountDisk /dev/disk4
sudo dd bs=1m if=image.img of=/dev/<disk# from diskutil>
e.g. sudo dd bs=1m if=2015-05-05-raspbian-wheezy.img of=/dev/disk4
This may result in an dd: invalid number '1m' error if you have GNU coreutils installed. In that case you need to use 1M:
sudo dd bs=1M if=image.img of=/dev/<disk# from diskutil>
This will take a few minutes.
where it says "if=image.img" you have to put the full path of the image. I'm typically a windows user, so I'm used to doing c:/users/etc. With mac it's similar, I had the image in my downloads folder, and the path is /Users/(username)/Downloads/(folder name for image)/(imagename.img)
After 'bs=" that is a 1(one)m. I thought it was an L and kept getting errors.
"this will take a few minutes" is putting it lightly. I have a new mac with an i5 and it took 15-20 minutes. But being a class 4 SD probably slowed it down a bunch.
hit control+t to see the status of the transfer.
So when this is done, I put the card in my Pi and plugged it in. Logged into ubuntu with the defaults (ubuntu/ubuntu for the user/pass) and was left at a command line. Startx didn't do anything. I bashed my head against the wall for the better part of a day trying to figure out why I kept running out of space, then returned to the original ubuntu wiki and found they had directions for exactly this kind of scenario.
Plug in the raspberry pi, log in (ubuntu/ubuntu)
$ sudo fdisk /dev/mmcblk0
Delete the partition by typing: d (enter) 2 (enter)
Recreate partition by typing: n (enter) p (enter) 2 (enter) (enter) (enter)
Write to disk by typing: w (enter)
press ctrl+alt+del to reboot the system
log back in (ubuntu/ubuntu)
on the wiki.ubuntu site, it says to run this:
sudo resize2fs /dev/mmcblk0p2
to resize the partition, when I ran it the directory wasn't found...
type:
lsblk
to see your partitions and their paths. My p2 took up the rest of my card. So I continued on creating the swap file, which wants to be 2gb.
sudo apt-get install dphys-swapfile
This failed because I ran out of disk space... so I re ran the
sudo resize2fs /dev/mmcblk0p2
And it completed successfully. Ive been known to mistype paths, which probably happened when I originally ran resize2fs.
After it finished, I tried to rerun the dphys-swapfile but terminal told me to run:
sudo dpkg --configure -a
Then I was finally able to install ubuntu desktop
sudo apt-get install lubuntu-desktop
After that, ubuntu was running.
But it was TERRIBLY slow.
I ran a slight overclock by editing the config.txt file per this website:
http://haydenjames.io/raspberry-pi-2-overclock/
In System Tools select UXterm or Xterm to get into Terminal
or hit ctrl+alt+T
type
sudo nano /boot/config.txt
At the bottom is a preloaded arm_freq option, I added the following
arm_freq=1000
sdram_freq=500
core_freq=500
over_voltage=2
gpu_mem=512
ctrl+O
ctrl+X
Close terminal and shutdown/reboot
Changing the arm_freq speeds up boot considerably, The other settings help, but don't do much it seems.
Remember, you only have a 1gb of memory, streaming video like youtube is pretty painful, but if you let it buffer a bit it works fine. Unless you go full screen...
*************************notes relating to not following directions************************
have to install the desktop for ubuntu.
First type: sudo apt-get update
Then type: sudo apt-get install ubuntu-desktop
Again, this process takes a while (probably due to my class 4 card, but whatever, it was 10 bucks)
At this point I kept running out of disk space. The previous process formatted 1.8gb of the 32gig card.
so I ran this instead
sudo dd bs=1m if=2015-05-05-raspbian-wheezy.img of=/dev/rdisk3
which ran a lot faster than the previous method.
startx still didn't do anything
it told me to run:
sudo apt-get install xinit
this quickly ran and I got to a white terminal... nothing else.
formatted the SD card with Mac's Disk Utility.
Back in Terminal:
sudo diskutil unmountdisk disk1
sudo dd bs=1m if=/Users/(username)/Downloads/(folder containing image)/(image.img) of=/dev/rdisk1
again, using rdisk instead of disk made it go much faster.
on raspberry:
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install ubuntu-desktop
still not big enough, ran out of disk space
format, reload (rinse/repeat number 5 now.)
sudo apt-get update
sudo parted -l
get the device name for:
sudo fdisk /(devicename)
n for new partition
e for extended
enter defaults
sudo reboot
sudo parted -l
you will see a third partition using the rest of the disk space
sudo apt-get updated
sudo apt-get install build-essential
sudo apt-get install ubuntu-desktop
after following instructions on the first link...
sudo apt-get update
sudo apt-get install ubuntu-desktop
sudo apt-get install xinit
ubuntu loaded after a restart, unable to login
sudo apt-get remove xinit
sudo apt-get clean ubuntu-desktop
sudo apt-get remove ubuntu-desktop
sudo apt-get install ubuntu-desktop
sudo apt-get install ubuntu-desktop
Friday, May 29, 2015
Wednesday, May 27, 2015
DNS not routing to forwarder in Forward Lookup Zones
I recently had an instance where the server name contained dashes only.
I configured an lookup zone and A record like I do with many other sites, but this one wouldn't work.
Ping name-name couldn't be found.
After some Googling, I determined DNS was seeing the name as a single label name.
I also found out WINS used to handle situations like this (no running WINS server on my network)
But Microsoft offers a solution for server 2008 and above called GlobalNames
I will put the scripts I ran in Powershell here, at the bottom are the pages I pulled the information from, their pages contain GUI instructions.
dnscmd servername /config /Enableglobalnamessupport 1 (you will do this step on all servers running DNS, cool thing about powershell is you can do it all from this one prompt, just up arrow, change the server name and hit enter.)
dnscmd servername /ZoneAdd GlobalNames /DsPrimary /DP /forest
At this point you can go into your DNS manager GUI (Start>Admin tools>DNS) go to your Forward Lookup Zone and find GlobalNames.
Right Click
New Host (A or AAA)
Enter the name (it will show up name.globalnames)
Enter IP address (remove checkmark in create associated pointer (PTR) record)
done.
I had to flush dns (ipconfig /flushdns) and I reran the 'enableglobalnamessupport 1' on a couple servers running DNS after creating the A record.
I configured an lookup zone and A record like I do with many other sites, but this one wouldn't work.
Ping name-name couldn't be found.
After some Googling, I determined DNS was seeing the name as a single label name.
I also found out WINS used to handle situations like this (no running WINS server on my network)
But Microsoft offers a solution for server 2008 and above called GlobalNames
I will put the scripts I ran in Powershell here, at the bottom are the pages I pulled the information from, their pages contain GUI instructions.
dnscmd servername /config /Enableglobalnamessupport 1 (you will do this step on all servers running DNS, cool thing about powershell is you can do it all from this one prompt, just up arrow, change the server name and hit enter.)
dnscmd servername /ZoneAdd GlobalNames /DsPrimary /DP /forest
At this point you can go into your DNS manager GUI (Start>Admin tools>DNS) go to your Forward Lookup Zone and find GlobalNames.
Right Click
New Host (A or AAA)
Enter the name (it will show up name.globalnames)
Enter IP address (remove checkmark in create associated pointer (PTR) record)
done.
I had to flush dns (ipconfig /flushdns) and I reran the 'enableglobalnamessupport 1' on a couple servers running DNS after creating the A record.
Monday, May 11, 2015
Restart services the easy way and without end user interaction
Occasionally I've had to do a full ip release and renew to get things working again. When I'm remoted in I've done the ipconfig /release and had to have the end use type in ipconfig /renew.
There's been a 'solution' to my 'problem' all along:
ipconfig /release && ipconfig /renew
This will release the IP and renew the IP once the previous command completes.
This will also work if you have to do something like restart a spooler
net stop spooler && net start spooler
Or any other services that you have to stop start rather than just restart.
This will also work if you have to do something like restart a spooler
net stop spooler && net start spooler
Or any other services that you have to stop start rather than just restart.
Tuesday, March 24, 2015
WDS completes, no boot device on startup.
F1 to retry
You know the error screen.
Situation:
Dell Latitude e7440, solid state drive
Came with windows 8, used WDS to put vanilla W7.
W7 completes, but doesn't boot.
I went into BIOS, secure boot was disabled
UEFI was enabled, changed to legacy and it booted right up.
Also, with these e7440, I've been moving the SSD into the MSATA port. I had an issue with one of the first e7440 that was losing the regular SATA connection, randomly. I'd get the system and it would boot up, everything would be fine, I'd send it back to the user, it wouldn't work again. The back panel is kind of flimsy, so I can only assume he was holding it toward the top, or the docking station was pressing against the cable causing the hard drive connection to come loose.
You know the error screen.
Situation:
Dell Latitude e7440, solid state drive
Came with windows 8, used WDS to put vanilla W7.
W7 completes, but doesn't boot.
I went into BIOS, secure boot was disabled
UEFI was enabled, changed to legacy and it booted right up.
Also, with these e7440, I've been moving the SSD into the MSATA port. I had an issue with one of the first e7440 that was losing the regular SATA connection, randomly. I'd get the system and it would boot up, everything would be fine, I'd send it back to the user, it wouldn't work again. The back panel is kind of flimsy, so I can only assume he was holding it toward the top, or the docking station was pressing against the cable causing the hard drive connection to come loose.
Monday, March 23, 2015
Move computers to groups in logmein central
Sounds simple right? I was in Details view and for whatever reason I couldn't figure it out until I switched to List view.
I'm using Chrome to load the Logmein Central page.
Change to List view
Click the drop down by the computer you want to change and go to Properties
On this window you'll have a drop down for the groups you've created
Select the group and save
I'm using Chrome to load the Logmein Central page.
Change to List view
Click the drop down by the computer you want to change and go to Properties
On this window you'll have a drop down for the groups you've created
Select the group and save
Friday, March 20, 2015
Moving a VMware machine from one physical machine to another.
First, SSH has to be enabled on each of the physical hosts.
on the VM host, hit F2 and log in.
Go to Troubleshooting Options. I turned on both the ESXi shell and the SSH shell, then restarted management agents, I don't know if I had to do all that, but I did.
Once you've done that, go to your vSphere and go to the Configuration tab.
Click Security Profile under Software.
Click Properties under firewall, I put a check mark in SSH Client and SSH server.
This would be done on both physical servers.
I used Putty to connect to the server that housed the machine I wanted to move. Once your connected, type:
scp -r /vmfs/volumes/(your datastore name)/(your VM host folder) root@ip.of.new.server:/vmfs/volumes/place/it/goes
It should then ask for the root password. Those are not two separate commands, there's a space between (your VM host folder) and root, but it would all be on the same command.
SCP lets you move files, SCP -r lets you move directories, if you forget the R you'll get an error that its not a regular file.
I would also get "no such file or directory" the first couple of times I tried this, ESXi is case sensitive, so make sure you use proper case.
I also had issues finding out the path of my files. To find out your path, go to your vSphere Client.
Click Configuration
Under Hardware, go to Storage
click on your datastore, this gave me the /vmfs/volumes/ part, the hex identifier can be replaced with the name you gave your datastore, this is located under identification.
You can right click the datastore, and go to Browse Datastore to see the folders that hold your virtual machines.
Also, in my environment I was only getting transfer rates of 4-5mbps.
This is on a gig network, with 10k SAS drives, transferring from a G7 to a G5 HP server.
**********
Also....
If you go have a big enough drive, you can copy the files to your computer, and then upload them to the other server. This is the video that helped me.
https://www.youtube.com/watch?v=XSZdWQMynhw&index=4&list=PLe-uhdcSI8Z3FSPcGdUvnurCcGuW4vESm
*****************Update on transfer speed*******************
I was able to double the 4-5mbps by changing the raid of the target server. I was running RAID 5, changed to RAID 10 and saw 9/10mbps, So the limitation before was the Hard Drive speed, which makes sense and I should have known, but I guess I just took for granted.
on the VM host, hit F2 and log in.
Go to Troubleshooting Options. I turned on both the ESXi shell and the SSH shell, then restarted management agents, I don't know if I had to do all that, but I did.
Once you've done that, go to your vSphere and go to the Configuration tab.
Click Security Profile under Software.
Click Properties under firewall, I put a check mark in SSH Client and SSH server.
This would be done on both physical servers.
I used Putty to connect to the server that housed the machine I wanted to move. Once your connected, type:
scp -r /vmfs/volumes/(your datastore name)/(your VM host folder) root@ip.of.new.server:/vmfs/volumes/place/it/goes
It should then ask for the root password. Those are not two separate commands, there's a space between (your VM host folder) and root, but it would all be on the same command.
SCP lets you move files, SCP -r lets you move directories, if you forget the R you'll get an error that its not a regular file.
I would also get "no such file or directory" the first couple of times I tried this, ESXi is case sensitive, so make sure you use proper case.
I also had issues finding out the path of my files. To find out your path, go to your vSphere Client.
Click Configuration
Under Hardware, go to Storage
click on your datastore, this gave me the /vmfs/volumes/ part, the hex identifier can be replaced with the name you gave your datastore, this is located under identification.
You can right click the datastore, and go to Browse Datastore to see the folders that hold your virtual machines.
Also, in my environment I was only getting transfer rates of 4-5mbps.
This is on a gig network, with 10k SAS drives, transferring from a G7 to a G5 HP server.
**********
Also....
If you go have a big enough drive, you can copy the files to your computer, and then upload them to the other server. This is the video that helped me.
*****************Update on transfer speed*******************
I was able to double the 4-5mbps by changing the raid of the target server. I was running RAID 5, changed to RAID 10 and saw 9/10mbps, So the limitation before was the Hard Drive speed, which makes sense and I should have known, but I guess I just took for granted.
Unable to update the IP address on Isatap interface isatap.
Environment:
ESXI 5.5
Windows Server 2012 R2
Error comes up when running DCdiag.
To clear this I went into Device Manager, show hidden devices, disabled and uninstalled the ISATAP connector.
Clean DCDIAG after that.
ESXI 5.5
Windows Server 2012 R2
Error comes up when running DCdiag.
To clear this I went into Device Manager, show hidden devices, disabled and uninstalled the ISATAP connector.
Clean DCDIAG after that.
Tuesday, March 10, 2015
WDS capture, windows failed to start 0xc000000f
I'm trying to capture an image using WDS.
I went through the proper steps of creating a boot image and then a capture image.
The Boot image loads fine, the capture image results in this screen:
WDS is running on fully patched (as of 3/10/2015) server 2012 R2After searching the internet and finding a number of people have this issue, some referring to KB2919355, I finally found a fix that worked.
(If you are wondering, no, removing KB2919355 and reinstalling WDS did not work for me.)
I used DISM to mount and unmount the capture image. I created a "MountDir" folder on the same drive as the rest of the boot files. In red are the variables for whatever you called your capture image.wim and wherever you want to mount it to.
C:\>dism /mount-wim /wimfile:C:\RemoteInstall\Boot\x64\Images\capture_x64.wim /mountdir:C:\MountDir /index:1
Deployment Image Servicing and Management tool
Version: 6.3.9600.17031
Mounting image
[==========================100.0%==========================]
The operation completed successfully.
C:\>dism /unmount-wim /mountdir:C:\MountDir /commit
Deployment Image Servicing and Management tool
Version: 6.3.9600.17031
Image File : C:\RemoteInstall\Boot\x64\Images\capture_x64.wim
Image Index : 1
Saving image
[==========================100.0%==========================]
Unmounting image
[==========================100.0%==========================]
The operation completed successfully.
And that's it. Mount it, do nothing to it, unmount it saving 'changes' and viola. You can now boot to the capture image.
Friday, February 27, 2015
Word showing {hyperlink "mailto:"} in front of email addresses
Situation:
all email address are showing up with {hyperlink "mailto:email@address.com"} in front of them
Solution:
alt+F9
all email address are showing up with {hyperlink "mailto:email@address.com"} in front of them
Solution:
alt+F9
Thursday, February 12, 2015
Mac delete key doesn't work through logmein
Situation:
Mac laptop using logmein to connect to a PC
Problem:
Using Outlook on the PC, unable to delete emails by pressing the delete key on the Mac. It just opens the Deleted Items in outlook.
Solution:
Press fn+delete key to delete the items through logmein.
Mac laptop using logmein to connect to a PC
Problem:
Using Outlook on the PC, unable to delete emails by pressing the delete key on the Mac. It just opens the Deleted Items in outlook.
Solution:
Press fn+delete key to delete the items through logmein.
Thursday, January 29, 2015
Public Folders, Exchange 2013
Are a massive pain in the ass...
So you have the main mailbox, assigned the Primary Hierarchy, and all mailboxes beyond that are assigned the Secondary Hierarchy.
If a folder resides in anything but the Primary Hierarchy, you will NOT be able to add subfolders to it through Outlook.
You'll get this window:
You'll still be able to add folders through the EAC, but this is a massive administrative pain if your users are adding subfolders all the time.
You will be able to move data like emails and tasks to it if its in a Secondary Hierarchy though.
If you have a folder tree like this:
Root public folder
∟Team folder
∟ Folder for Stuff
∟ Folder for Stuff
∟ Folder for Stuff
That continues on and on for different root public folders, this is how you have to have them assigned on the back end:
Root public folder(primary hierarchy)
∟Team folder (primary hierarchy)
∟ Folder for Stuff (secondary hierarchy)
∟ Folder for Stuff (secondary hierarchy)
∟ Folder for Stuff (secondary hierarchy)
This way, you're moving the actual data to another PF-Mailbox and allowing the Primary space to create other useable folders through outlook.
In the Folder for Stuff, you'll be able to add emails, tasks, etc, just not subfolders.
If you've migrated from a previous version of exchange and didn't map out your public folders like this prior to the move, here are some powershell scripts you'll need. You'll need to be in the exchange shell, running as admin and logged in with a user that has exchange administration rights.
I'd just CD to the location of scripts since you'll be running a number of scripts. The scripts are located in program files\Microsoft\exchange server\
so you'll need:
.\move-publicfolderbranch.ps1
This script moves the folder you select along with everything underneath it. If you're moving a large folder, it will lock down all public folders until its done.
FolderRoot:
the location of the folder, if its a root folder, just type its name, if its not, type \home folder\sub folder\sub folder\etc until you get to the folder you're going to move. If you use the EAC to find the public folder, drill down to as far as you need and you can copy the path/paste it into powershell with a right click.
TargetPublicFolderMailbox:
The pf-mailbox you're moving to (the secondary hierarchy folder)
To see the statistics:
get-publicfoldermoverequeststatistics -identity \publicfoldermove
Before you move on to the next folder move you have to remove the finished job (there might be a better way to go about this, but I'm new to powershell/coding in general)
remove-publicfoldermoverequest -identity \publicfoldermove
If you only want to move the root folder:
new-publicfoldermoverequest
You'll be able to select the folders you want to move with this command.
So you have the main mailbox, assigned the Primary Hierarchy, and all mailboxes beyond that are assigned the Secondary Hierarchy.
If a folder resides in anything but the Primary Hierarchy, you will NOT be able to add subfolders to it through Outlook.
You'll get this window:
| The connection to Microsoft Exchange is unavailable. Outlook must be online or connected to complete this action. |
You'll still be able to add folders through the EAC, but this is a massive administrative pain if your users are adding subfolders all the time.
You will be able to move data like emails and tasks to it if its in a Secondary Hierarchy though.
If you have a folder tree like this:
Root public folder
∟Team folder
∟ Folder for Stuff
∟ Folder for Stuff
∟ Folder for Stuff
That continues on and on for different root public folders, this is how you have to have them assigned on the back end:
Root public folder(primary hierarchy)
∟Team folder (primary hierarchy)
∟ Folder for Stuff (secondary hierarchy)
∟ Folder for Stuff (secondary hierarchy)
∟ Folder for Stuff (secondary hierarchy)
This way, you're moving the actual data to another PF-Mailbox and allowing the Primary space to create other useable folders through outlook.
In the Folder for Stuff, you'll be able to add emails, tasks, etc, just not subfolders.
If you've migrated from a previous version of exchange and didn't map out your public folders like this prior to the move, here are some powershell scripts you'll need. You'll need to be in the exchange shell, running as admin and logged in with a user that has exchange administration rights.
I'd just CD to the location of scripts since you'll be running a number of scripts. The scripts are located in program files\Microsoft\exchange server\
so you'll need:
.\move-publicfolderbranch.ps1
This script moves the folder you select along with everything underneath it. If you're moving a large folder, it will lock down all public folders until its done.
FolderRoot:
the location of the folder, if its a root folder, just type its name, if its not, type \home folder\sub folder\sub folder\etc until you get to the folder you're going to move. If you use the EAC to find the public folder, drill down to as far as you need and you can copy the path/paste it into powershell with a right click.
TargetPublicFolderMailbox:
The pf-mailbox you're moving to (the secondary hierarchy folder)
To see the statistics:
get-publicfoldermoverequeststatistics -identity \publicfoldermove
Before you move on to the next folder move you have to remove the finished job (there might be a better way to go about this, but I'm new to powershell/coding in general)
remove-publicfoldermoverequest -identity \publicfoldermove
If you only want to move the root folder:
new-publicfoldermoverequest
You'll be able to select the folders you want to move with this command.
Subscribe to:
Posts (Atom)
ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor'
I tried a couple things, downgrading, reinstalling, followed some github links talking about /usr/local/lib/python3.10/dist-packages/basics...
-
Situation: Vizio sound bar works. But all of a sudden, no sound. The movie is playing fine, but no sound. On the sound bar itself, two ind...
-
I have a customer that would like 3 monitors, for whatever reason. The Dell 9020 is capable of this, and this is how I got it to work. No ...
